#ifndef __CONFIG_H__
#define __CONFIG_H__

#include "../../include/data_type.h"
#include "../../include/cube.h"
#include "../../include/list_head.h"
#include "../../include/mac_label.h"
#include "../../common/xobject.h"

typedef struct __USER_ITEM
{
	XOBJECT objHdr;
	LIST_HEAD head;
	USER_LABEL user;
}USER_ITEM;

typedef struct __FILE_ITEM
{
	XOBJECT objHdr;
	LIST_HEAD head;
	FILE_LABEL file;
}FILE_ITEM;


void config_module_init(void);
void config_module_destroy(void);
int read_filelist(const char * filename);
int read_userlist(const char * filename);
FILE_ITEM * lookup_file_item(const unsigned char * digest);
USER_ITEM * lookup_user_item(const int uid);

#endif

